On Periodicity Lemma for Partial Words
نویسندگان
چکیده
We investigate the function L(h, p, q), called here the threshold function, related to periodicity of partial words (words with holes). The value L(h, p, q) is defined as the minimum length threshold which guarantees that a natural extension of the periodicity lemma is valid for partial words with h holes and (strong) periods p, q. We show how to evaluate the threshold function in O(log p + log q) time, which is an improvement upon the best previously known O(p+ q)-time algorithm. In a series of papers, the formulae for the threshold function, in terms of p and q, were provided for each fixed h ≤ 7. We demystify the generic structure of such formulae, and for each value h we express the threshold function in terms of a piecewise-linear function with O(h) pieces.
منابع مشابه
The three-squares lemma for partial words with one hole
Partial words, or sequences over a finite alphabet that may have do-not-know symbols or holes, have been recently the subject of much investigation. Several interesting combinatorial properties have been studied such as the periodic behavior and the counting of distinct squares in partial words. In this paper, we extend the three-squares lemma on words to partial words with one hole. This resul...
متن کاملPeriods and Binary Words
We give an elementary short proof for a well-known theorem of Guibas and Odlyzko stating that the sets of periods of words are independent of the alphabet size. As a consequence of our constructing proof, we give a linear time algorithm which, given a word, computes a binary one with the same periods. We give also a very short proof for the famous Fine and Wilf's periodicity lemma.
متن کاملPeriodicity properties on partial
The concept of periodicity has played over the years a centra1 role in the development of combinatorics on words and has been a highly valuable too1 for the design and analysis of algorithms. Fine and Wilf’s famous periodicity result, which is one of the most used and known results on words, has extensions to partia1 words, or sequences that may have a number of “do not know” symbols. These ext...
متن کاملFine and Wilf’s Periodicity on Partial Words and Consequences
The concept of periodicity has played over the years a central role in the development of combinatorics on words and has been a highly valuable tool for the design and analysis of algorithms. There are many fundamental periodicity results on words. Among them is the famous result of Fine and Wilf which intuitively determines how far two periodic events have to match in order to guarantee a comm...
متن کاملA new approach to the periodicity lemma on strings with holes
We first give an elementary proof of the periodicity lemma for strings containing one hole (variously called a “wild card” or a “don’tcare” or an “indeterminate letter” in the literature). The proof is modelled on Euclid’s algorithm for the greatest common divisor and is simpler than the original proof given in [BB99]. We then study the two hole case, where our result agrees with the one given ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2018